package cn.bonoon.controllers.account.admin;

import cn.bonoon.controllers.account.AccountCondition;
import cn.bonoon.controllers.account.AccountDefine;
import cn.bonoon.kernel.annotations.TransformField;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;

@AsDataGrid(condition = AccountCondition.class, value = @GridOptions(operationWith = 100))
public class AdminItem extends AbstractItem implements AccountDefine {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6636125961411320872L;
	@AsColumn(width = 100, ordinal = 0)
	private String loginName;
	@AsColumn(width = 130, ordinal = 10)
	private String name;
	@AsColumn(width = 70, ordinal = 15)
	private String typeName;
	@AsColumn(width = 50, ordinal = 30)
	private String status;
	@AsColumn(width = 100, ordinal = 40)
	private String lastLogonIp;
	@AsColumn(name = "最后登录时间", width = 140, ordinal = 50)
	private String lastLogonAt;
	@TransformField("status")
	private int statusValue;

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getLastLogonIp() {
		return lastLogonIp;
	}

	public void setLastLogonIp(String lastLogonIp) {
		this.lastLogonIp = lastLogonIp;
	}

	public String getLastLogonAt() {
		return lastLogonAt;
	}

	public void setLastLogonAt(String lastLogonAt) {
		this.lastLogonAt = lastLogonAt;
	}

	public int getStatusValue() {
		return statusValue;
	}

	public void setStatusValue(int statusValue) {
		this.statusValue = statusValue;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

}
